home *** CD-ROM | disk | FTP | other *** search
/ Inter.Net 55-1 / Inter.Net 55-1.iso / CBuilder / Info / TeachU14 / SAMS / Code / Day08 / btntest.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1998-02-08  |  949 b   |  26 lines

  1. //---------------------------------------------------------------------------
  2. #include <vcl.h>
  3. #pragma hdrstop
  4. USERES("BtnTest.res");
  5. USEFORM("BTMain.cpp", MainForm);
  6. USEFORM("Button.cpp", ButtonForm);
  7. USEFORM("BitBtn.cpp", BitBtnForm);
  8. //---------------------------------------------------------------------------
  9. WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
  10. {
  11.         try
  12.         {
  13.                  Application->Initialize();
  14.                  Application->CreateForm(__classid(TMainForm), &MainForm);
  15.                  Application->CreateForm(__classid(TButtonForm), &ButtonForm);
  16.                  Application->CreateForm(__classid(TBitBtnForm), &BitBtnForm);
  17.                  Application->Run();
  18.         }
  19.         catch (Exception &exception)
  20.         {
  21.                  Application->ShowException(&exception);
  22.         }
  23.         return 0;
  24. }
  25. //---------------------------------------------------------------------------
  26.